<div id="browserFileInfo" class="content">
  <% if @media_file %>
    <% if @media_file.file_type == "image" %>
      <dl class="advanced">
        <dt><%=t(:preview, :scope => [:media, :files, :edit])%></dt>
        <dd>
          <%= image_tag(skyline_media_dir_data_with_size_path(
                :dir_id => @media_dir,
                :name => @media_file.name,
                :size => '100x100'), 
              :alt => "Image") %>
        </dd>
      </dl>
    <%end%>
    
    <dl class="advanced">
      <dt><%= t(:metadata, :scope => [:media, :files,:edit]) %></dt>
      <dd>
        <dl class="details">
          <% if @media_file.file_type ==  "image" && @media_file.dimension.present? %>
            <dt><%=t(:size, :scope => [:media, :files, :edit])%>: </dt>
            <dd><%=@media_file.dimension['width'] %>x<%=@media_file.dimension['height'] %></dd>
          <%end%>
          <dt><%=t(:type, :scope => [:media, :files, :edit])%>: </dt>
          <dd><%=@media_file.file_type %></dd>
      
          <dt><%=t(:filesize, :scope => [:media, :files, :edit])%>: </dt>
          <dd><%= number_to_human_size @media_file.size %></dd>
      
          <dt><%= Skyline::MediaFile.human_attribute_name("name") %></dt>
          <dd><%= @media_file.name %></dd>

          <dt><%= Skyline::MediaFile.human_attribute_name("title") %></dt>
          <dd><%= @media_file.title %></dd>
  
          <dt><%= Skyline::MediaFile.human_attribute_name("description")%></dt>
          <dd><%= @media_file.description%></dd>
        </dl>
      </dd>
    </dl>
  <% end %>
</div>
